package
{
	import com.dreamfire.Config;
	import com.dreamfire.core.Client;
	
	import flash.display.Sprite;
	import flash.display.StageAlign;
	import flash.display.StageScaleMode;
	import flash.events.Event;
	
	[SWF(width="1000", height="600", frameRate="60", backgroundColor="0x000000")]
	public class Main extends Sprite
	{
		private var _config:Config;
		private var _client:Client;
		
		public function Main()
		{
			if(stage != null)
				init();
			else
				this.addEventListener(Event.ADDED_TO_STAGE, init);
		}
		
		private function init(event:Event = null):void
		{
			stage.align = StageAlign.TOP_LEFT;
			stage.scaleMode = StageScaleMode.NO_SCALE;
			stage.showDefaultContextMenu = false;
			
			_config = new Config();
			_config.mode = Config.MODE_3D;
			_client = new Client(stage, _config);
			
		}
	}
}